﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using xiaodingmarket_Domain_core.Models;
using static xiaodingmarket_Domain.Models.EunmType;

namespace xiaodingmarket_Domain.Models
{
    public class Report : AggregateRoot
    {
        public Report()
        {

        }

        public Report(ReportKinds reportkind, Guid reporter, Guid bereporter, string reason, DateTime logTime, DateTime modifyTime, Guid createUserId, Guid modifyUserId, string buyer, Reportprocess reportprocess)
        {
            this.reportkind = reportkind;
            this.reporter = reporter;
            this.bereporter = bereporter;
            Reason = reason;
            LogTime = logTime;
            ModifyTime = modifyTime;
            CreateUserId = createUserId;
            ModifyUserId = modifyUserId;
    
            Reportprocess = reportprocess;
        }

        /// <summary>
        /// 举报类型
        /// </summary>
        public ReportKinds reportkind { get; set; }
        /// <summary>
        ///举报方id
        /// </summary>
        public Guid reporter { get; set; }
        /// <summary>
        /// 被举报方
        /// </summary>
        public Guid bereporter { get; set; }
        /// <summary>
        /// 举报原因
        /// </summary>
        [Column(TypeName = "varchar(500)")]
        public string Reason { get; set; }
        /// <summary>
        /// 生成订单时间
        /// </summary>
        public DateTime LogTime { get; set; }
        /// <summary>
        /// 最后一次修改订单时间
        /// </summary>
        public DateTime ModifyTime { get; set; }
        /// <summary>
        /// 创建订单者id
        /// </summary>
        public Guid CreateUserId { get; set; }
        /// <summary>
        /// 修改订单者id
        /// </summary>
        public Guid ModifyUserId { get; set; }


        /// <summary>
        /// 处理
        /// </summary>
        public Reportprocess Reportprocess { get; set; }


    }
}
